import turtle

def star():
    turtle.fillcolor('orange')
    turtle.begin_fill()
    for i in range(5):
        turtle.forward(30)
        turtle.right(144)
    turtle.end_fill()

def up_goto(pos):
    turtle.up()
    turtle.goto(pos)
    turtle.down()

def draw():
    turtle.clear()
    up_goto(pos)
    star()
    pos[1] -= 10
    if pos[1] < -320:
        pos[1] = -320
    elif pos[1] > 300:
        pos[1] = 270

    turtle.ontimer(draw, 200)

def func_click(x,y):
    pos[1]+=20



turtle.tracer(False)
pos = [0, 300]
draw()
turtle.onscreenclick(func_click)
turtle.done()

